//
//  DnPhotoViewPage.h
//  DnPhotoGallery	
//
//  Created by Ngoc on 12/12/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DnPhotoViewCell.h"
#import "DnPhotoGalleryStaticVariables.h"
#import <QuartzCore/CoreAnimation.h>
@protocol DnPhotoViewPageDatasource;
@interface DnPhotoViewPage : UIView <UIScrollViewDelegate>{
    UIScrollView *_scrollView;   
    id<DnPhotoViewPageDatasource> _dataSource;
    NSUInteger _numberOfRows;
    NSUInteger _numberOfColumns;
    NSUInteger _cellMargin;
    NSMutableArray *_useItems;

}
@property(nonatomic, retain) id<DnPhotoViewPageDatasource> dataSource;
@property (nonatomic, retain, readonly) UIScrollView *scrollView;
@property (nonatomic) NSUInteger numberOfRows;
@property (nonatomic) NSUInteger numberOfColumns;
@property (nonatomic) NSUInteger cellMargin;
@property(nonatomic) NSUInteger numberOfItems;
@property(nonatomic, retain)     NSMutableDictionary *userData;
@property(nonatomic, assign) BOOL isNeedReloadData;
-(void) deleteItemAtIndex:(NSInteger) index animation:(BOOL) animation;
- (void)reloadData;
@end

@protocol DnPhotoViewPageDatasource<NSObject>
- (NSInteger)numberOfCellsInPage:(DnPhotoViewPage *)pageView;
- (DnPhotoViewCell*)pageView:(DnPhotoViewPage *)pageView itemAtIndex:(NSUInteger)index;
@end